package cn.amaake.common;


import java.util.HashMap;
import java.util.Map;

/**
 * @Description: 结果集
 * @Copyright: 2017 www.fallsea.com Inc. All rights reserved.
 * @author: fallsea
 * @version 1.0
 * @date: 2017年10月22日 下午8:29:07
 */
public class Result {

    private int errorNo;

    private String errorInfo;

    private Map<String,Object> results;

    public Result(){
        errorNo = 0;
        results = new HashMap<String,Object>();
    }

    public void setData(Object data){
        results.put("data",data);
    }

    public String getErrorInfo() {
        return errorInfo;
    }

    public void setErrorInfo(String errorInfo) {
        this.errorInfo = errorInfo;
    }

    public int getErrorNo() {
        return errorNo;
    }

    public void setErrorNo(int errorNo) {
        this.errorNo = errorNo;
    }

    public Map<String, Object> getResults() {
        return results;
    }

    public void setResults(Map<String, Object> results) {
        this.results = results;
    }
}